package com.ssm.maven.exception;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;

public class MyExceptionResolver implements HandlerExceptionResolver{
	
	public ModelAndView resolveException(HttpServletRequest req,
			HttpServletResponse resp, Object paramObject, Exception e) {
		
		System.out.println("�쳣�����ˣ�"+e);
		
		ModelAndView  mv=new  ModelAndView();
		mv.setViewName("error");
		return mv;
	}

}
